/**
 * Copyright (C), 2020, Y2 T205
 * FileName: NoStockException
 * Author: Lenovo
 * Date: 2020-05-28 16:33
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */


package com.atguigu.common.exception;


/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Lenovo
 * @create 2020-05-28
 * @since 1.0.0
 */

public class NoStockException extends RuntimeException {

    private Long skuId;
   public NoStockException(){
       super("没有足够的库存啦");
   }


    public NoStockException(Long skuId) {
        super("商品id："+skuId+"没有足够的库存啦");
    }
    public NoStockException(String msg) {
        super(msg);
    }

    public Long getSkuId() {
        return  skuId;
    }

    public void setSkuId(){
        this.skuId=skuId;
    }
}
